package cn.com.sinosoft.testxmltransform.yewu;


/**
 * 科室信息传输类
 * @author lianWuJun
 * @time   2017年2月10日 上午10:18:20
 */
public class Department {
		
	private String code; //科室编码	
	private String name; //科室名称
	
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
    
	/**
	 * 数据转换
	 * 传输类转实体类
	 * @return	科室实体信息
	 */
	public DepartmentEntity toDepartmentEntity() {
		if(this.code == null){
			return null;
		}
		DepartmentEntity departmentEntity = new  DepartmentEntity();
		ObjectUtil.oldToNew(departmentEntity, this, "serialVersionUID");
		return departmentEntity;
	}
	
}
